#define  _CRT_SECURE_NO_WARNINGS 1

#include"AVLTree.h"

void test1()
{
	int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	AVLTree<int, int> t;
	for (auto e : arr)
	{
		t.insert(make_pair(e,e));
	}

	t.Print();
}

void test2()
{
	int n = 10000;
	srand(time(0));

	AVLTree<int, int> t;

	for (int i = 0;i < n;i++)
	{
		t.insert(make_pair(rand(), rand()));
		cout << t.IsAVLTree() << endl;
	}

	t.Print();
}

int main()
{
	test2();

	return 0;
}